class myPromise {
    constructor(executor) {
        this.state = 'pending'
        this.result = null
        this.reason = null
        executor(this.resolve, this.reject)
    }

    resolve() {

    }

    reject() {

    }
}